<B:UIVAART x:Class="WPFExcelReport.UVA07UBT"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
           xmlns:me="clr-namespace:WPFExcelReport" 
             xmlns:B="clr-namespace:WPFExcelReport;assembly=TVAART" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                      xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
            xmlns:VAK="clr-namespace:WPFExcelReport;assembly=TVAKOLL" 
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <B:UIVAART.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>    
        <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:SDKEYCONV x:Key="sd"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </B:UIVAART.Resources>
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0"  Grid.Column="0" >
            <WrapPanel  Margin="0,5,0,0" Visibility="{Binding IsNew,ElementName=TV,Converter={StaticResource nbv}}">
                <Grid Margin="10,0,0,0" VerticalAlignment="Top" Visibility="Collapsed">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=季节:}}"></TextBlock>
                    <TextBlock    Text="{Binding VAAKOLL,ElementName=TV}"  Grid.Column="1"     Width="60" />
                </Grid>
                <TextBlock Text="{Binding Source={Localization:Translate Word=季节:}}" Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"></TextBlock>
                <VAK:TSVA02 Grid.Column="2" KEY="{Binding KOLL,ElementName=TV}" Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"/>
                <Grid Margin="10,0,0,0" VerticalAlignment="Top" Visibility="Collapsed" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=客户组:}}"></TextBlock>
                    <TextBlock    Text="{Binding VAAPRGR,Source={StaticResource vwMaster}}"  Grid.Column="1"     Width="40" />
                </Grid>
                <Grid Margin="10,0,0,0" VerticalAlignment="Top"  Visibility="Collapsed">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=品种组:}}" 
                               ></TextBlock> 
                    <TextBlock   Text="{Binding VAAARTGRP,Converter={StaticResource sd},ConverterParameter=0178}"  
                                 Grid.Column="2"  Width="40" 
                                
                                 />

                </Grid>
                <SD:TSSD0178 KEY="{Binding ARTGRP,ElementName=TV}"  Grid.Column="3" 
                                 Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                                 MinWidth="100" />

            </WrapPanel> 
        </StackPanel>
    </Grid>
</B:UIVAART>

    
